<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * GoodsMaterial
 *
 * @ORM\Table(name="goods_material", options={"comment":"商品规格"})
 * @ORM\Entity()
 */
class  GoodsMaterial
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Goods
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Goods", inversedBy="id")
     * @ORM\JoinColumn(name="goods_id", referencedColumnName="id")
     */
    private $goods;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=45, options={"comment":"规格名称"})
     */
    private $name;
}
